﻿
using System.ServiceModel.DomainServices.Client;

namespace WebSilverlight.Web
{
    public partial class PaisListProvider
    {
    #region Properties
		PaisDomainContext _dc;
        public PaisDomainContext DomainContext
        {
            set
            {
                _dc = value;
                if (_dc.PaisWrappers.Count == 0)
                {
                    _dc.Load<PaisWrapper>(_dc.GetPaisQuery());
                }
            }
        }
        public EntitySet<PaisWrapper> EntityList
        {
            get
            {
                return _dc.PaisWrappers;
            }
        }        
	#endregion
		public PaisListProvider()
        {
            DomainContext = new PaisDomainContext();
        }
    }
}
